package com.jsz.yun.ai.field.exception;

import com.jsz.yun.ai.field.enums.AbstractResultCode;
import lombok.Getter;

/**
 * @author lami
 * 响应状态码枚举类，定义了常见的响应状态码和对应的消息
 */
@Getter
public class BusinessException extends BaseException {

    private Object data;


    public BusinessException(AbstractResultCode errorCodeEnum) {
        super(errorCodeEnum.getResultCode(), errorCodeEnum.getResultMsg().trim());
    }

    public Object getData() {
        return data;
    }
}